<script type="text/javascript" src="{$themeurl}/tiny_mce/tiny_mce.js"></script>
<script src="{$themeurl}calendar/datetimepicker_css.js"></script>

<script type="text/javascript">
imageFilesPath = "{$themeurl}calendar/images/";
{literal}

tinyMCE.init({
        mode : "specific_textareas",
        editor_selector : "htmlEditor",
        theme : "advanced",

       plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

        // Theme options
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,

        // Skin options
        skin : "o2k7",
        skin_variant : "silver"

});
{/literal}
</script>

<form method="POST">
<h1>{$LNG_title_edit}</h1>
<table width="100%" border="1">
<tr><td><b>{$LNG_label_title}</b></td>
<td><input type="text" value="{$news.title}" name="title" style="width: 100%" /></td></tr>

<tr><td><b>{$LNG_label_author}</b></td>
<td><input type="text" value="{$news.author}" name="author" style="width: 100%" /></td></tr>

<tr><td><b>{$LNG_label_state}</b></td>
<td><select style="width: 100%" name="state">
<option{if $news.state eq "active"} selected{/if} value="active">{$LNG_state_active}</option>
<option{if $news.state eq "programed"} selected{/if} value="programed">{$LNG_state_programed}</option>
<option{if $news.state eq "foread"} selected{/if} value="foread">{$LNG_state_foread}</option>
<option{if $news.state eq "unactive"} selected{/if} value="unactive">{$LNG_state_unactive}</option>
</select>
</td></tr>

<tr><td><b>{$LNG_label_publishtime}</b></td>
<td><input type="text" name="sdate" id="publish" value="{$news.time}" />
<img src="{$themeurl}calendar/images/cal.gif" onclick="javascript:NewCssCal('publish', 'yyyyMMdd', 'dropdown', true)" style="cursor:pointer"/></td></tr>

<tr><td><b>{$LNG_label_endtime}</b></td>
<td><input type="text" name="edate" id="endline" value="{$news.end}" />
<img src="{$themeurl}calendar/images/cal.gif" onclick="javascript:NewCssCal('endline', 'yyyyMMdd', 'dropdown', true)" style="cursor:pointer"/></td>

<tr><td colspan="2"><textarea style="width:100%;height:300px;" name="content" class="htmlEditor">{$news.content}</textarea></td></tr>
</table>

<p><input type="submit" value="{$LNG_label_send}"/> <input type="reset" value="{$LNG_label_reset}"/></p>
</form>
